package com.hb.study.jdk;

import org.junit.Test;

/**
 * 测试Cloneable接口
 *
 * @author Mr.Huang
 * @version v0.1, CloneableTest.java, 2020/5/14 10:19, create by huangbiao.
 */
public class CloneableTest {

    @Test
    public void test1() throws CloneNotSupportedException {
        TestEntity entity = new TestEntity(1, "com.hb.study.jdk.CloneableTest.test1");
        System.out.println(entity);
        System.out.println(entity.hashCode());
        Object clone = entity.clone();
        System.out.println(clone);
        System.out.println(clone.hashCode());
    }

}

    